Skip to content

Update search weights for search fields#9

Merged
LightJack05 merged 1 commit intomainfrom
search-weights
Jan 16, 2026
Merged

Update search weights for search fields#9
LightJack05 merged 1 commit intomainfrom
search-weights

Conversation

@LightJack05
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 16, 2026 16:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MongoDB text search index configuration to add custom weights for search fields. The weights prioritize product_name (weight: 5) over _keywords (weight: 3) in text search results, allowing product names to rank higher in search queries.

Changes:

  • Added weights parameter to the MongoDB text index creation with product_name: 5 and _keywords: 3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LightJack05 LightJack05 merged commit 539193e into main Jan 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant